package com.geeklan.base.common;

public class Constants {
    public static final String SETTINGS_HOME_FILE_PATH = "/system/etc/TvSettings.ini";

    public static final String PROJECTOR_PACKAGE = "PROJECTOR_PACKAGE";
    public static final String PROJECTOR_CLASS = "PROJECTOR_CLASS";
    public static final String HDMI_PACKAGE = "HDMI_PACKAGE";
    public static final String HDMI_CLASS = "HDMI_CLASS";
    public static final String STORAGE = "STORAGE";
    public static final String SHOW_BLUETOOTH_PAIRING = "SHOW_BLUETOOTH_PAIRING";
    public static final String SYSTEM_MODEL_NAME = "SYSTEM_MODEL_NAME";
    public static final String SYSTEM_SETTINGS_PACKAGE = "SYSTEM_SETTINGS_PACKAGE";
    public static final String SYSTEM_SETTINGS_CLASS = "SYSTEM_SETTINGS_CLASS";
    public static final String SHOW_FOCUS_KEYSTONE = "SHOW_FOCUS_KEYSTONE";
    public static final String SHOW_12_24_TIME = "SHOW_12_24_TIME";
    public static final String OPEN_SETTINGS_TYPE = "OPEN_SETTINGS_TYPE";
    public static final String OPEN_PARING_TYPE = "OPEN_PARING_TYPE";

    public static String getConfigStringValue(String line){
        try {
            return line.substring(line.indexOf("=") + 1).trim();
        }catch (Exception e){
            return "";
        }
    }

    public static boolean getConfigBooleanValue(String line){
        try {
            return line.substring(line.indexOf("=") + 1).trim().equals("true");
        }catch (Exception e){
            return false;
        }
    }
}
